package com.example.gss.entity;

import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 学科竞赛记录，对应数据库中的competition表
 */
@Data
public class Competition implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    private String competitionId;
    private String studentId;
    private String name;
    private String level;
    private String category;
    private String award;
    private Date date;
    private Boolean isTeam;
    private String teamMembers;
    private BigDecimal score;

    public Competition() {
    }

    public Competition(String competitionId, String studentId, String name, String level,
                       String category, String award, Date date, Boolean isTeam,
                       String teamMembers, BigDecimal score) {
        this.competitionId = competitionId;
        this.studentId = studentId;
        this.name = name;
        this.level = level;
        this.category = category;
        this.award = award;
        this.date = date;
        this.isTeam = isTeam;
        this.teamMembers = teamMembers;
        this.score = score;
    }

    @Override
    public String toString() {
        return "Competition{" +
                "competitionId='" + competitionId + '\'' +
                ", studentId='" + studentId + '\'' +
                ", name='" + name + '\'' +
                ", level='" + level + '\'' +
                ", category='" + category + '\'' +
                ", award='" + award + '\'' +
                ", date=" + date +
                ", isTeam=" + isTeam +
                ", teamMembers='" + teamMembers + '\'' +
                ", score=" + score +
                '}';
    }
}